package com.utility.project.service;

import com.utility.project.dto.CustomeUseAndTime;
import com.utility.project.entity.YsCustomer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.utility.project.param.CustomerParam;

import java.util.List;

/**
 * @author yangzhiguo
 * @date 2024-06-13
 * @description 行业人才表
 */
public interface IYsCustomerService extends IService<YsCustomer> {

    YsCustomer queryYsCustomer(String username);

    Boolean saveCustomer(CustomerParam param);

    Boolean updateCustomerStatus(CustomerParam param);

    Boolean abtainDailyFreeUser(String username);

    Boolean accessToUseOrNo(String username, Integer useNums);

    Boolean reduceUseTimes(String username, Integer useNums);

    List<YsCustomer> queryCustomerByFreeUsage();

    List<YsCustomer> queryInvalidCustomer();

    Boolean queryDailyFreeUse(String username);

    CustomeUseAndTime queryUseTimeAndValidTime(String username);
}
